package com.sntk.organauthomanager.application.dto;

import com.sntk.organauthomanager.infrastructure.validation.Insert;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @ClassName: RoleCreator
 * @author: wgchao
 * @createTime: 2020/7/21 3:39 PM
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleCreator implements Serializable {
    //角色码
    @NotBlank(message = "角色码不能为空", groups = Insert.class)
    private String roleCode;

    //角色名
    @NotBlank(message = "角色名称不能为空", groups = Insert.class)
    private String roleName;

    //备注
    private String remark;
}
